package org.edu.modules.sxjy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.sql.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * @author leidq
 * @create 2022-04-08 12:03
 */

@TableName("ve_stu_literary_active")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "文体活动表对象", description = "ve_stu_literary_active")
public class VeStuLiteraryActive extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableField
    @ApiModelProperty("活动类型（0：班级，1：校级）")
    private Integer type;
    @TableField
    @ApiModelProperty("用户名称")
    private String userNames;
    @TableField
    @ApiModelProperty("活动标题")
    @Length(max = 200)
    private String title;
    @TableField
    @ApiModelProperty("活动内容")
    @Length(max = 65535)
    private String content;
    @TableField
    @ApiModelProperty("活动级别（0：国际级、1：国家级、2：省级、3：市级、4：县级、5：其它）")
    private Integer grade;
    @TableField
    @ApiModelProperty("主办单位")
    @Length(max = 255)
    private String company;
    @TableField
    @ApiModelProperty("状态（0：未发布，1：发布）")
    private Integer status;
    @TableField
    @ApiModelProperty("发布时间")
    @JsonFormat(timezone = "GMT+8", locale = "zh", pattern = "yyyy-MM-dd")
    private Date pushTime;
    @TableField
    @ApiModelProperty("开始时间")
    @JsonFormat(timezone = "GMT+8", locale = "zh", pattern = "yyyy-MM-dd")
    private Date startTime;
    @TableField
    @ApiModelProperty("结束时间")
    @JsonFormat(timezone = "GMT+8", locale = "zh", pattern = "yyyy-MM-dd")
    private Date endTime;
    @TableField
    @ApiModelProperty("发布的人")
    @Length(max = 32)
    private String pushUser;
    @TableField
    @ApiModelProperty("")
    @Length(max = 255)
    private String pushUserName;
    @TableField
    @ApiModelProperty("是否全班或全校（0：否，1：是）")
    private Integer isAll;
}
